
public class CloneTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {

		MyClass a = new MyClass();
		MyClass clone = a.clone();
		System.out.println("a.clone() != a ? " + (clone != a));
		System.out.println("orginal: " + a);
		System.out.println("clone: " + clone);
		
		
	}

	static class MyClass implements Cloneable {
		String s1;
		
		@Override
		protected MyClass clone() throws CloneNotSupportedException {
			return (MyClass) super.clone();
		}
	}
}

